<?php
/**
 * Created by PhpStorm.
 * User: HeYongbiao
 * Date: 2016/11/30
 * Time: 19:30
 */
defined('IN_IA') or exit('Access Denied');
require_once IA_ROOT . '/framework/library/qrcode/phpqrcode.php';

function getRandStr($length){
    $str = null;
    $strPol = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz";
    $max = strlen($strPol)-1;
    for($i=0;$i<$length;$i++){
        $str.=$strPol[rand(0,$max)];
    }
    return $str;
}
